import java.util.Scanner;

public class Student extends Person{
    private String id;
    Student(String name, String email, String address, String id){
        super(name, email, address);
        this.id = id;
    }
    public void setLoad() {
        Scanner input = new Scanner(System.in);
        System.out.println("输入学号");
        String inputi = input.nextLine();
        id = inputi;
    }
    public String getLoad(){
        return id;
    }
    public String toString() {
        return super.toString() + "学号：[" + id + "]";
        
    }
        
}
    //不可以用student独有的东西 把子类的东西放到父类
